﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace ASPNET.StarterKit.BusinessLogicLayer
{
/// <summary>
/// Summary description for Material
/// </summary>
public class Material
{
    //private int _ItemCode;
    private string _ItemName;
    private string _ItemDescription;
    private string _ItemType;
    private string _ItemCategory;
    private int _uomID ;
    private float _Lenght;
    private float _Width ;
    private float _Height;
    private float _Weight;
    private int _ReorderQty;
    private int _ReorderPoint;
    private float _SellingRate;
    private int _LocationID;


    public Material(
        //int ItemCode,
        string ItemName,
        string ItemDescription,
     string ItemType,
     string ItemCategory,
     int uomID,
     float Lenght,
     float Width,
     float Height,
     float Weight,
     int ReorderQty,
     int ReorderPoint,
     float SellingRate,
     int LocationID
        )

	{
       // _ItemCode = ItemCode;
     _ItemName=ItemName;
     _ItemDescription=ItemDescription;
     _ItemType=ItemType;
     _ItemCategory=ItemCategory;
     _uomID = uomID;
     _Lenght=Lenght;
     _Width=Width ;
     _Height=Height;
     _Weight=Weight;
     _ReorderQty=ReorderQty;
     _ReorderPoint=ReorderPoint;
     _SellingRate=SellingRate;
     _LocationID = LocationID;
	}



    //public int ItemCode
    //{
    //    get
    //    {

    //        return _ItemCode;

    //    }

    //}
        public string ItemName
        {
            get
            {
                if (String.IsNullOrEmpty(_ItemName))
                {
                    return string.Empty;
                }
                return _ItemName;

            }
            set
            {
                _ItemName = value;
            }
        }
        public string ItemDescription
        {
            get
            {
                if (String.IsNullOrEmpty(_ItemDescription))
                {
                    return string.Empty;
                }
                return _ItemDescription;

            }
            set
            {
                _ItemDescription = value;
            }
        }
        public string ItemType
        {
            get
            {
                if (String.IsNullOrEmpty(_ItemType))
                {
                    return string.Empty;
                }
                return _ItemType;

            }
            set
            {
                _ItemType = value;
            }
        }
        public string ItemCategory
        {
            get
            {
                if (String.IsNullOrEmpty(_ItemCategory))
                {
                    return string.Empty;
                }
                return _ItemCategory;

            }
            set
            {
                _ItemCategory = value;
            }
        }

        public int uomID
        {
            get { return _uomID; }
            set { _uomID = value; }
        }

    public float Lenght
    {
        get { return _Lenght; }
        set { _Lenght = value; }
    }

    public float Width
    {
        get { return _Width; }
        set { _Width = value; }
    }

    public float Height
    {
        get { return _Height; }
        set { _Height = value; }
    }
        


    public float Weight
    {
      get { return _Weight; }
      set { _Weight = value; }
    }

    public int ReorderQty
    {
        get { return _ReorderQty; }
        set { _ReorderQty = value; }
    }

    public int ReorderPoint
    {
        get { return _ReorderPoint; }
        set { _ReorderPoint = value; }
    }

    public float SellingRate
    {
        get { return _SellingRate; }
        set { _SellingRate = value; }
    }

    public int LocationID
    {
        get { return _LocationID; }
        set { _LocationID = value; }
    }

    }   
    }



